home *** CD-ROM | disk | FTP | other *** search
/ Complete Linux / Complete Linux.iso / docs / apps / database / postgres / postgre4.z / postgre4 / src / lib / C / pgmacs.notes < prev    next >
Encoding:
Text File  |  1992-08-27  |  1.7 KB  |  77 lines

  1.  
  2. /*     
  3.  *      FILE
  4.  *         pgmacs.l
  5.  *     
  6.  *      DESCRIPTION
  7.  *         Useful POSTGRES LISP macros
  8.  *     
  9.  *      NOTE
  10.  *         Much of the contents of tcop/create.l should be moved here.
  11.  *      $Header: /private/postgres/src/lib/C/RCS/pgmacs.notes,v 1.2 1989/09/05 17:15:04 mao Version_2 $
  12.  */
  13.  
  14. /*    
  15.  *        Conditionals
  16.  *    
  17.  */
  18.  
  19. /*    
  20.  *     as-block
  21.  *    
  22.  *        macro to allow evaluation of expressions blocked by a begin and end
  23.  *    
  24.  */
  25.  
  26. /*  .. init-query-planner
  27.  */
  28. /*
  29. defmacro (as_block,begin (end,rest,body)
  30. */
  31.  
  32. /*         =====================
  33.  *         GENERAL C DEFINITIONS
  34.  *         =====================
  35.  */
  36.  
  37. /*    
  38.  *        useful C constants
  39.  *    
  40.  */
  41. /*
  42. defvar (c_nil,0,"C (void *) NULL");
  43. defvar (c_true,1,"C boolean true");
  44. defvar (c_false,0,"C boolean false");
  45. defvar (_newline_,ascii (newline));
  46. defvar (_NOTICE_,0,"elog level: print notice message");
  47. defvar (_FATAL_,1,"elog level: KILL backend");
  48. defvar (_DEBUG_,-2,"elog level: print debug message");
  49. defvar (_NOIND_,-3,"elog level: indent oddly");
  50. */
  51. /*         ==================
  52.  *         TRANSACTION SYSTEM
  53.  *         ==================
  54.  */
  55.  
  56. /*    
  57.  *     as-transaction-command
  58.  *    
  59.  *        evalutes expressions in a transaction command
  60.  *    
  61.  */
  62. /*
  63. defmacro (as_transaction_command,rest (body),as_block (startxcommand (),commitxcommand (),body));
  64. */
  65. /*    
  66.  *        macro to cause evaluation of expressions viewing own modification
  67.  *    
  68.  *    XXX This is likely to never be needed.
  69.  *  (defmacro with-self-view (&rest body)
  70.  *    `(as-block (setheapoverride c-true) (setheapoverride c-false) ,@body))
  71.  */
  72.  
  73. /*         ==========================
  74.  *         C MEMORY MANAGEMENT SYSTEM
  75.  *         ==========================
  76.  */
  77.